* diff.el (diff-parse-differences): Preserve the match data
authorJim Blandy <jimb@redhat.com>
Tue, 22 Jun 1993 03:50:08 +0000 (03:50 +0000)
committerJim Blandy <jimb@redhat.com>
Tue, 22 Jun 1993 03:50:08 +0000 (03:50 +0000)
across the call to find-file-noselect.

lisp/diff.el

index d4c5f5d3a2e53150876d3f77b8ec8da251185313..7043c9ac73e19ce1fef816b9abb237f757d220ae 100644 (file)
@@ -113,7 +113,8 @@ is nil, REGEXP matches only half a section.")
                                                (match-beginning subexpr)
                                                (match-end subexpr)))))
                                    (save-excursion
-                                     (set-buffer (find-file-noselect file))
+                                     (save-match-data
+                                       (set-buffer (find-file-noselect file)))
                                      (save-excursion
                                        (goto-line line)
                                        (point-marker)))))